
  <link rel="stylesheet" href="*ADMIN*/layui/css/layui.css">
  <link rel="stylesheet" href="*PC*/css/home.css?4">
  <script src="*ADMIN*/layui/layui.js"></script>
  <script src="*ADMIN*/js/jquery-3.4.1.min.js"></script>
</head>
<body class="layui-layout-body" style="overflow: auto;">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">个人中心</div>
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item"><a href="/">返回首页</a></li>
		{volist name=":fun_s('cate',array('open'=>1,'open1'=>1,'tid'=>0),'px desc',7,1)" id="vo"}
		<li class="layui-nav-item"><a href="*URL*/m_{$vo.alias}.html">{$vo.name}</a></li>				
		{/volist} 	
		{volist name=":fun_s('link',array('open'=>1,'tid'=>1),'px desc',7,1)" id="vo"}
		<li class="layui-nav-item"><a href="{$vo.lianjie}" {if condition="$vo['xin'] eq '1'"}target="_blank"{/if}>{$vo.name}</a></li>	
			{/volist} 
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="{:member('userhead')}" class="layui-nav-img">
          {:member('username')}
        </a>
        <dl class="layui-nav-child">
          <dd><a href="/">返回首页</a></dd>
          <dd><a href="*URL*/uid_{:member('userid')}">个人主页</a></dd>
          <dd class="tuichu"><a href="javascript:;">退出</a></dd>
        </dl>
      </li>
    </ul>
  </div>
    <input type="checkbox" id="myInput">
    <label id="myInputlabel" for="myInput">
      <span class="bar top"></span>
      <span class="bar middle"></span>
      <span class="bar bottom"></span>
    </label>
    <div class="layui-side layui-bg-black" id="divmy" >
    <div class="layui-side-scroll">
      <ul class="layui-nav layui-nav-tree"  lay-filter="test" id="menu">
      	<li class="layui-nav-item"><a href="{:url('index/home/index')}" >个人中心</a></li>
        <li class="layui-nav-item"><a href="{:url('index/home/set')}" >基本设置</a></li>
        <li class="layui-nav-item"><a href="{:url('index/home/comment')}" >我的评论</a></li>
        <li class="layui-nav-item"><a href="{:url('index/home/shoucang')}" >我的收藏</a></li>
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;"><i class="layui-icon">&#xe63a;</i>  消息</a>
          <dl class="layui-nav-child ">
            <dd><a href="{:url('index/home/xiaoxi', array('id'=>1))}" >未读消息<span class="layui-badge">{:fun_st('xiaoxi',array('userid'=>session('userid'),'open'=>1))}</span></a></dd>
            <dd><a href="{:url('index/home/xiaoxi', array('id'=>0))}" >已读消息</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;"><i class="layui-icon">&#xe66f;</i>  我的</a>
          <dl class="layui-nav-child">
  	    {volist name=":fun_s('model',array('open'=>1),'px desc',100,1)" id="vo"}
         <dd><a href="{:url('index/home/contribute', array('id'=>$vo['id']))}" >我的{$vo.title}</a></dd>
        {/volist}
          </dl>
        </li>
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;"><i class="layui-icon">&#xe654;</i>   添加</a>
          <dl class="layui-nav-child">
  	    {volist name=":fun_s('model',array('open'=>1),'px desc',100,1)" id="vo"}
         <dd><a href="{:url('index/home/add', array('id'=>$vo['id']))}" >添加{$vo.title}</a></dd>
        {/volist}
          </dl>
        </li>

        <li class="layui-nav-item">
          <a class="" href="javascript:;"><i class="layui-icon">&#xe609;</i>   快捷导航</a>
          <dl class="layui-nav-child">
  	    {volist name=":fun_s('link',array('open'=>1,'tid'=>4),'px desc',1000,1)" id="vo"}
         <dd><a href="{$vo.lianjie}" {if condition="$vo['xin'] eq '1'"}target="_blank"{/if}>{$vo.name}</a></dd>
        {/volist}
          </dl>
        </li>
        {:h('homedaohang')}
      </ul>
    </div>
  </div>
<script>
$(document).ready(function(){
	$("#myInput").click(function(){
		$("#divmy").fadeToggle();

	});
});
</script>
<script type="text/javascript">
layui.use(['layer', 'element', 'jquery', 'form'], function() {
    var layer = layui.layer,
        element = layui.element,
         jq = layui.jquery,
         form = layui.form;
    jq('.tuichu').click(function() {
         loading = layer.load(2, {
            shade: [0.2, '#000']
        });
        jq.getJSON('{:url("api/api/tuichu")}', function(data) {
            if (data.code == 200) {
                layer.close(loading);
                 layer.msg(data.msg, {
                     icon: 1,
                    time: 1000
                }, function() {
                     location.href = '/';
                });
            } else {
                 layer.close(loading);
                layer.msg(data.msg, {
                     icon: 2,
                    anim: 6,
                    time: 1000
                 });
           }
         });
    });
  var urlstr = location.href;
  var urlstatus=false;
  $("#menu a").each(function () {
    if ((urlstr + '/').indexOf($(this).attr('href')) > -1&&$(this).attr('href')!='') {
      $(this).addClass('layui-this'); urlstatus = true;
    } else {
      $(this).removeClass('layui-this');
    }
  });
  if (!urlstatus) {$("#menu a").eq(0).addClass('layui-this'); }
});
</script> 
<!--系统预留插件钩子请保页面显示-->
{:h('homeheader')}